<?php defined('LFNC_PACKAGE') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Lucky_Funcs
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: mysql_fetch_value.lfnc.php 262 2009-06-19 05:31:16Z molotsoft@gmail.com $
* @link $HeadURL: http://lucky-funcs.googlecode.com/svn/trunk/funcs/mysql/mysql_fetch_value.lfnc.php $
*/


function mysql_fetch_value($dbr, $value_col = 0) {
	$row = mysql_fetch_array($dbr, is_wholenum($value_col) ? MYSQL_NUM : MYSQL_ASSOC);
	return isset($row[$value_col]) ? $row[$value_col] : FALSE;
}


?>